import { defineStore } from "pinia";
import { ref, computed } from "vue";

const storeSetup = () => {
  /* 定义数据--------------------------------------------------------------------- */
  // 当前选择的tabsKey
  const currentTabsKey = ref("1");

  /* 定义函数--------------------------------------------------------------------- */

  // 返回参数
  return {
    currentTabsKey,
  };
};

// 导出Store
export const useAppStore = defineStore("app", storeSetup, {
  persist: true,
});
